package extendS;

class Father{
    public B fun1(){
        return new B();

    }
}
class Son extends Father{
    @Override
    public B fun1() {
        System.out.println("11");
        System.out.println("11");
        return (B)new A();

    }
}

public class demo2 {
    public static void main(String[] args) {

    }

    public static void test(Father father){

    }
}
